<template>
  <div id="app">
    <Nav v-if="isNotIndex"/>
    
    <router-view ></router-view>

    <Backtop />
    <Footer />
  </div>
</template>

<script>
import Nav from './components/nav'
import Footer from './components/Footer'
import Backtop from './components/Backtop'
export default {
  data() {
    return {
          isNotIndex:true
    }
  },
  created() {
      let n = this.$router.app.$route.path
      if(n === '/'){
        this.isNotIndex = true
      }
    },
  components:{
    Nav,
    Footer,
    Backtop
  },
}
</script>
<style>

@import url('./assets/css/util.css');

</style>
